//
//  Service.h
//  ShopInMall_OC
//
//  Created by Sailer Guo on 2019/10/11.
//  Copyright © 2019 Sailer Guo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ServiceConfigProtocol.h"
#import <ReactiveObjC/ReactiveObjC.h>

#import "EnvironmentConstants.h"


NS_ASSUME_NONNULL_BEGIN


// service 封装的是App 固有的属性，持有不会经常变动的信息和操作，
@interface HTTPService : NSObject <SPService>


@property (nonatomic,strong) RACSubject *errors;

#warning 还要补充的内容
/*
 1. 运行时检查传入的参数是否为空；
 */
- (RACSignal *)signalProduce:(RACTuple *)router withDecodeClass:(Class __nullable)cls isList:(BOOL)isList;

// 上传文件
- (RACSignal *)uploadFileSignal:(RACTuple *)router;

- (id<ServiceConfig>)getServiceConfigFor:(HTTPServiceType)serviceType;

@end

NS_ASSUME_NONNULL_END
